package com.zueb.service;

import com.zueb.pojo.User;
import com.zueb.pojo.UserInfo;

import java.util.List;

public interface UserService {

    void addUser(User user);

    User getUserByNumber(String number);

    List<UserInfo> getAllUser(String userRole);

    /**
     * 得到总数
     * @return
     */
    int getCount(String userRole, int classesId);

    /**
     * 查找学生用户
     * @param userRole
     * @param facultyId
     * @param classesId
     * @param currentPage
     * @param pageSize
     * @return
     */
    List<UserInfo> getAllStudent(String userRole, int facultyId, int classesId, int currentPage, int pageSize);

    /**
     * 动态查询信息
     * @param userRole
     * @param facultyId
     * @param classesId
     * @param currentPage
     * @param pageSize
     * @return
     */
    List<UserInfo> getAllUserInfo(String userRole, int facultyId, int classesId, int currentPage, int pageSize);

    int getAlUserInfoCount(String userRole, int facultyId, int classesId);
    /**
     * 重置密码
     * @param number
     * @return
     */
    int resetPass(String number);

    int delete(String number);

    int editPass(User user);
}
